url.path is now a Path, not a String
authorRenato Zannon <renato@rrsz.com.br>
Sun, 6 Jul 2014 23:07:56 +0000 (20:07 -0300)
committerRenato Zannon <renato@rrsz.com.br>
Sun, 6 Jul 2014 23:07:56 +0000 (20:07 -0300)
src/cargo/sources/git/source.rs

index 6a87f318c41cc25d741476f6b3b6b261c5a5d2ea..24ab5e8e0114930e4cda645fbb1ae5ea6a3da354 100644 (file)
@@ -68,7 +68,7 @@ fn ident(location: &Location) -> String {
             str::from_utf8(last).unwrap().to_str()
         }
         Remote(ref url) => {
-            let path = canonicalize_url(url.path.as_slice());
+            let path = canonicalize_url(url.path.path.as_slice());
             path.as_slice().split('/').last().unwrap().to_str()
         }
     };